﻿using System.ComponentModel.DataAnnotations;

namespace JTTD.Domain.Dtos.Integral.Reuqest
{
    /// <summary>
    /// 提交账单转积分申请dto
    /// </summary>
    public  class CreateApplyRequestDto
    {
        /// <summary>
        /// 账单图片
        /// </summary>
        [Required(ErrorMessage = "请账单图片图片")]
        [MaxLength(200,ErrorMessage = "账单图片链接不能超过200个字符")]
        public string FileUrl { get; set; }
        /// <summary>
        /// 账单金额
        /// </summary>
        [Range(1,int.MaxValue,ErrorMessage ="账单金额不能小于1")]
        public decimal Amount { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string Phone { get; set; }
    }
}
